package GameEvent
{
	import flash.events.Event;

	public class CGameEvent extends Event
	{
		public static const EVENT_SNAKE_EAT_SOMETHING		:String = "Event_SnakeEatSomething";
		public static const EVENT_END_SHOWTIME				:String = "Event_EndShowTime";
		
		private var m_arrParam :Array;
		
		public function CGameEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			m_arrParam = null;
		}
		public function AddParam(param :*) :void
		{
			if (m_arrParam == null) m_arrParam = new Array();
			
			m_arrParam.push(param);
		}
		public function GetParam(i :uint) :*
		{
			if (i >= m_arrParam.length) return null;
			return m_arrParam[i];
		}
		
	}
}